# Contributor: Bart Ribbers <bribbers@disroot.org>
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=boca
pkgver=1.0.2
pkgrel=0
arch="all"
url="https://github.com/enzo1982/boca"
pkgdesc="A component library used by the fre:ac audio converter"
license="GPL-2.0-or-later"
makedepends="smooth-dev libcdio-dev expat-dev pulseaudio-dev libcdio-paranoia-dev uriparser-dev"
source="https://github.com/enzo1982/boca/archive/v$pkgver/boca-v$pkgver.tar.gz"
subpackages="$pkgname-dev"
options="!check" # No tests
builddir="$srcdir/BoCA-$pkgver"

prepare() {
	default_prepare

	find . -type f -exec sed -i 's|/usr/local|/usr|g' {} \;
}

build() {
	make
}

package() {
	DESTDIR="$pkgdir" make install
}

sha512sums="00c9cca07b469c6defa45bfed18f860ddb6fe83b2f01a27760d730836421aa743b2a39f1734810b9b5c0aedb47ffba16504906271f9a5f7f7cecefa6df3b15ff  boca-v1.0.2.tar.gz"
